package com.doge.walknovel.business.reader.download

import com.doge.walknovel.utils.isMainThread
import net.lingala.zip4j.ZipFile

object ZipHelper {
    fun unzip(zipFileString: String, outDirString: String,  password: String) {
        require(!isMainThread())
        ZipFile(zipFileString, password.toCharArray()).extractAll(
            outDirString
        )
    }
}